package com.xuchaotong.extendsdemo;

public abstract class AbstractBeanFactory extends DefaultSingletonBeanRegistry {
    public Object doGetBean(final String beanName) {

        Object obj = getSingleton(beanName, () -> {
            return createBean(beanName);
        });
        return obj;
    }


    protected abstract Object createBean(String beanName);
}
